package com.znf4.user.info.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.user.info.entity.UserInfo;
import com.znf4.user.info.mapper.UserInfoMapper;
import com.znf4.user.info.server.UserInfoServer;

@Service
public class UserInfoServerImpl implements UserInfoServer {
	
	@Autowired
	private UserInfoMapper userInfoMapper ;

	public void addUserInfo(UserInfo userInfo) {
		userInfoMapper.insert(userInfo);
		
	}

	public void updateUserInfo(UserInfo userInfo) {
		userInfoMapper.update(userInfo);
		
	}

	public void delOneUserInfo(UserInfo userInfo) {
		userInfoMapper.deleteOne(userInfo);
		
	}

	public void delAllUserInfo(List<UserInfo> list) {
		userInfoMapper.deleteAll(list);
		
	}

	public UserInfo queryOne(UserInfo userInfo) {
		return userInfoMapper.queryOne(userInfo);
	}

	public List<UserInfo> queryAll(UserInfo userInfo) {
		return userInfoMapper.queryAll(userInfo);
	}

	
	
	
	
	
	

}
